package ABBB;

public class Cpu0 implements Cpu {
    private String brand;
    private  double zhupin;

    public Cpu0(String brand, double zhupin) {
        this.brand = brand;
        this.zhupin = zhupin;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getZhupin() {
        return zhupin;
    }

    public void setZhupin(double zhupin) {
        this.zhupin = zhupin;
    }

    @Override
    public void work() {
        System.out.println("这个品牌是："+brand+"主频是："+zhupin);
    }

    @Override
    public void jieru() {
        System.out.println("插上"+brand+"牌CPU");
    }

    @Override
    public void bachu() {
        System.out.println("移除"+brand+"牌CPU");
    }

    @Override
    public String toString() {
        return"这个品牌是："+brand+"主频是："+zhupin;
    }
}
